const mongoose = require("mongoose");

const AccountSchema = new mongoose.Schema({
    title: {
        type: String,
        require: true
    },
    time: {
        type: Date,
        require:true
    },
    type: {
        type: Number,
        default: -1
    },
    account: {
        type: Number,
        require: true
    },
    remarks: {
        type: String
    },
    userId: {
        type: String,
        required: true // 标记为必需属性
    },
})

const AccountModel = mongoose.model("accountLianxi", AccountSchema);

module.exports = AccountModel;